/* $Id: BulletedText.java 77 2007-12-16 21:57:56Z osborn.steven $
 * 
 * Undroid Package Manager
 *
 * Copyright 2007 Steven Osborn
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>. 
 */
package com.bitsetters.android.common;

import android.graphics.drawable.Drawable;

/**
 * 
 * @author Steven Osborn - http://steven.bitsetters.com
 */
public class BulletedText extends Object {

    private String mText = "";
    private String mSubText = "";
    private Drawable mBullet;
    private boolean mSelectable = true;
    private Object mDataObject = null;

    
    /**
     * 
     * @param text
     * @param bullet
     */
    public BulletedText(String text, Drawable bullet) {
        mBullet = bullet;
        mText = text;
    }
    
    /**
     * 
     * @param text
     * @param bullet
     * @param sub
     */
    public BulletedText(String text, Drawable bullet, String sub) {
       mBullet = bullet;
       mText = text;
       mSubText = sub;
    }
    
    /**
     * 
     */
    public Object getDataObject() {
        return mDataObject;
    }
    
    /**
     * 
     * @param data
     */
    public void setDataObject(Object data) {
        mDataObject = data;
    }

    /**
     * 
     * @return
     */
    public boolean isSelectable() {
        return mSelectable;
    }
    
    /**
     * 
     * @return
     */
    public String getSubText() {
        return mSubText;
    }
    
    /**
     * 
     * @param text
     */
    public void setSubText(String text) {
        mSubText = text;
    }

    /**
     * 
     * @param selectable
     */
    public void setSelectable(boolean selectable) {
        mSelectable = selectable;
    }

    /**
     * 
     * @return
     */
    public String getText() {
        return mText;
    }

    /**
     * 
     * @param text
     */
    public void setText(String text) {
        mText = text;
    }

    /**
     * 
     * @param bullet
     */
    public void setBullet(Drawable bullet) {
        mBullet = bullet;
    }

    /**
     * 
     * @return
     */
    public Drawable getBullet() {
        return mBullet;
    }
}
